package qinggui.mlz.module.startagrelation.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import qinggui.mlz.module.startagrelation.entity.StarTagRelation;
import qinggui.mlz.module.startagrelation.mapper.StarTagRelationMapper;
import qinggui.mlz.module.startagrelation.service.StarTagRelationService;

import java.util.List;

@Service
public class StarTagRelationServiceImpl implements StarTagRelationService {
    @Autowired
    private StarTagRelationMapper starTagRelationMapper;
    @Override
    public List<StarTagRelation> queryByStarIdAndTagId(Long starId, Long tagId) {
        return starTagRelationMapper.queryByStarIdAndTagId(starId, tagId);
    }

    @Override
    public Integer insertStarTagRelation(StarTagRelation starTagRelation) {
        return starTagRelationMapper.instarTagRelation(starTagRelation);
    }
}
